<div style="float:left">
	<ul class="nav nav-list bs-docs-sidenav" style="margin:0;width:100px">
		<li><a href="javascript:getTemplateList(0)" style="text-align:left;"><i class="icon-chevron-right"></i>个人收藏</a></li>
		<volist name="cate" id="vo">
		<li><a href="javascript:getTemplateList({$vo.category_id})" id="group_{$vo.group_id}"><i class="icon-chevron-right"></i>{$vo.category_name}</a></li>
		</volist>
	</ul>
</div>
<div class="template-content" id="">
<div style="width:400px;float:right;">
	<table class="table table-condensed table-bordered table-hover holiday-content" style="height:100%">
		<thead><tr><td>短信内容</td><td>操作</td></tr></thead>
		<tbody>
			<volist name="list" id="vi">
			<tr><td><a href="javascript:void(0)" onclick="insertMegContent($(this).html());">{$vi.sms_content}</a></td><td width=30><i class="icon-th-list"></i><i class="icon-trash"></i></td></tr>
			</volist>
		</tbody>
	</table>
</div>
</div>
<div class="pagination" style="float:right">
	{$page}
</div>
<script>
	function getTemplateList($categoryID){
		$.ajaxload("__APP__/SMS/smsTemplateInsert/category_id/" + $categoryID,".template-content");
	}
	//点击短信库内容，后插入发送短信界面短信内容事件
	function insertMegContent(content){
		$(".modal-dialog").fadeOut(500,function(){
			$("#sendcontent").val("").val(content);
			var length=$("#sendcontent").val().length;
			statWordNum('',length);
		});
		clearDynamicHtml();
	}
</script>